package com.liuym.common.exception;

import com.liuym.common.constants.ResponseCodeConstants;

/**
 * @author Liuym
 * @date 2018/11/30 11:04
 * @describe：管理员模块异常处理
 */
public class AdminException extends ServiceException {

    public AdminException(int code, String msg) {
        super(code, msg);
    }

    public static AdminException internalServerError() {
        return new AdminException(ResponseCodeConstants.INTERNAL_SERVER_ERROR_CODE,
                ResponseCodeConstants.INTERNAL_SERVER_ERROR_MSG);
    }
}
